﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Economo.Services.EntitiesConversion;
using System.Runtime.Serialization;

namespace Economo.Services.BusinessEntities
{
    public class AccountType
    {
        private byte _id;
        private string _description;
        private bool _isIncome;

        [MappingSettingsAttribute(true, "Id", MappingSettingsAttribute.MappingType.Simple)]
        public byte Id
        {
            get
            {
                return _id;
            }
            set
            {
                _id = value;
            }
        }

        [MappingSettingsAttribute(true, "Description", MappingSettingsAttribute.MappingType.Simple)]
        public string Description
        {
            get
            {
                return _description;
            }
            set
            {
                _description = value;
            }
        }

        [MappingSettingsAttribute(true, "IsIncome", MappingSettingsAttribute.MappingType.Simple)]
        public bool IsIncome
        {
            get
            {
                return _isIncome;
            }
            set
            {
                _isIncome = value;
            }
        }
    }
}
